//package com.waste.game.controller;
//
//import com.github.pagehelper.PageInfo;
//import com.waste.game.entity.GameListBean;
//import com.waste.game.entity.WantBean;
//import com.waste.game.service.GameListService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.*;
//
//import javax.websocket.server.PathParam;
//import java.io.UnsupportedEncodingException;
//import java.net.URLDecoder;
//import java.util.ArrayList;
//import java.util.Arrays;
//import java.util.List;
//import java.util.Map;
//
//@Slf4j
//@RestController
//@RequestMapping("/search")
//public class GameSrcBodyController {
//
//    @Autowired
//    GameListService gameListService;
//
////    @PostMapping
////    public GameListBean showsrc(@PathVariable(value = "title") String title, @PathVariable(value = "id") Integer id, Model model){
////        PageInfo<GameListBean> pageInfo = gameListService.getGameSea(title,0,9);
//////        model.addAttribute("pageInfo",pageInfo);
//////        model.addAttribute("title",title);
//////        log.info("sc:{}",pageInfo);
//////        log.info("title:{}",title);
////        return pageInfo;
////    }
//
//    @PostMapping("/{title}/{id}")
//    public PageInfo<GameListBean> showsrcone(@PathVariable(value = "title") String title, @PathVariable(value = "id") Integer id){
////        log.info("title:{}",title);
////        log.info("id:{}",id);
////        PageInfo<GameListBean> pageInfo = gameListService.getGameSea(title , id ,9);
////        model.addAttribute("pageInfo",pageInfo);
////        model.addAttribute("title",title);
//
//        return gameListService.getGameSea(title , id ,9);
//    }
//
//    @PostMapping("/gamewant")
//    public String gameWant(@RequestBody WantBean wantBean){
//        gameListService.gameWant(wantBean);
//        return "ok";
//    }
//}
